/*
 * File Created: 2023-11-19 13:29:28
 * Author: 余保林 (yubaolin6@outlook.com)
 * Desc: 类型数
 * Last Modified: 2023-11-19 13:29:39
 * Modified By: 余保林 (yubaolin6@outlook.com>)
 */

import request from '@/utils/request.js'

// 查询分类树
export function getTypeTree(params) {
  return request({
    url: '/api/ctype/typeTree',
    method: 'get',
    params
  })
}

// 新增分类
export function insertTypeTree(data) {
  return request({
    url: '/api/ctype/insert',
    method: 'post',
    params: data
  })
}

// 更新分类
export function updateTypeTree(data) {
  return request({
    url: '/api/ctype/update',
    method: 'post',
    params: data
  })
}


export function deleteTypeTree(data) {
  return request({
    url: '/api/ctype/delete',
    method: 'get',
    params: data
  })
}

export function getAllTree() {
  return request({
    url: '/api/ctype/selectAll',
    method: 'get'
  })
}
// 分类
export function templateStepTool(params) {
  return request({
    url: '/api/template/stepTool',
    method: 'get',
    params

  })
}
